<?php

namespace app\bh\model;

use think\Model;

class FailepModel extends Model
{
    //
    protected $table = 'failep';

    public function setLatlngAttr($value)
    {
        return json_encode($value);
    }

    public function getLatlngAttr($value)
    {
        return json_decode($value, true);
    }


    public function data()
    {
        return $this->belongsTo('DataModel', 'gdid', 'id');
    }
}
